var audioElements = {};
document.querySelectorAll('.content-button').forEach(function (audio) {
    var src = audio.getAttribute('src');
    audioElements[src] = new Audio(src);
});
document.querySelectorAll('.content-button').forEach(function (audio) {
    audio.addEventListener('click', function () {
        var src = audio.getAttribute('src');
        var audioObj = audioElements[src];
        if (!audioObj.paused) {
            audioObj = new Audio(src);
            audioElements[src] = audioObj;
        }
        setTimeout(function () {
            audioObj.currentTime = 0;
            audioObj.play();
        }, 0);
    });
}); 